package com.mercury.pattern._13_command;

public class Client {
    public static void main(String[] args) {
        RemoteController controller = new RemoteController();

        LightReciever reciever = new LightReciever();
        LightOnCommand onCommand = new LightOnCommand(reciever);
        LightOffCommand offCommand = new LightOffCommand(reciever);

        controller.setCommand(0,onCommand,offCommand);

        controller.offBtn(0);
        controller.undoBtn();
        controller.onBtn(0);
    }
}
